home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.2 KB | 49 lines | [TEXT/GEOL] |
- Item forwarded by STATTENFIELD to MACAPP.ADMIN
-
- Item 5581181 27-Oct-90 00:40PDT
-
- From: MADA2 MacApp Dev Assoc, Don Sawtelle,IVC
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Problems with MacApp menus
-
- I am having a problem with menu management in MacApp that causes the Save item
- in the File menu to be disabled even though the document change count is
- non-zero.
-
- I am running a hardware-controlled process that collects some data from a NuBus
- bus master board. The status of this process is monitored in the DoIdle method
- of one of my objects. When the process is complete, that DoIdle method creates
- a command object to which is attached the data transferred from the NuBus
- board, and posts the command object. The application object correctly gets the
- command object and calls its DoIt method (which places the new data in the
- document). The application then increments the document's change count.
-
- At this point, you would think that everything is ok. Most of the behavior of
- the application thus far is just the standard MacApp stuff (only the DoIdle
- method and the method that the command object calls to add data to the document
- are my code, the rest is MacApp). If the user then hits Command-S or pulls
- down the File method to save the newly changed document, however, the Save menu
- item is gray!
-
- The reason for this is that TApplication, in SetupTheMenus, only does the menu
- set up procedure if MacApp's menu handling routines think that the menus or the
- menu bar is invalid, which they don't. I can, of course, call InvalidateMenus
- myself to fix this problem, but it seems as though MacApp should automatically
- invalidate the File menu when the document change count goes from 0 to 1 (or
- anything to 0, for that matter).
-
- Does anyone out there know if I am just missing some step that I should be
- taking? Also, does anyone know if the latest patches address asynchronous (not
- through an event) changes to documents and the effect on SetupTheMenus?
-
- Thanks for reading all of this!
-
- Paul G. Tobey
-
- [ This message originated from the MADA BBS. Replies addressed to MacApp.Tech$
- will be ported back to the MADA BBS (so don’t send them directly to this MADA2
- address). Thanks! ]
-
-